
import java.util.Random; 
import java.util.Arrays;
public class red {

    public static void main(String[] args){
    int[] arr = new int[7];
	
        Random rq = new Random(); 
        int num;
        int[] arr1 = new int[7];
        for (int i = 0; i < 6; i++) {
            Arrays.sort(arr1);
            inner: while (true) {
                 num = rq.nextInt(33) + 1;
                 if (Arrays.binarySearch(arr1, num) < 0) {
                     arr[i] = num;
                     break inner;
                 }
             }
             System.arraycopy(arr,0,arr1,0,6);
        }

        arr[6] = rq.nextInt(16)+1;

        System.out.println(Arrays.toString(arr));

    }
}